package com.julius.design.pattern.factory.ab;

/**
 * <p>
 *
 * </p>
 */
public class AbstractFactoryDemo {


    public static void main(String[] args) throws CloneNotSupportedException {

        AbstractFactory userFactory = FactoryProducer.getFactory("user");


        System.out.println(userFactory.getUserObjectByName("b").getUserInfo());


        AbstractFactory orderFactory = FactoryProducer.getFactory("order");

        System.out.println(orderFactory.getOrderObjectByName("c").getOrderFrom());


    }
}
